
import {useSearchParams,Outlet} from "react-router-dom"
export default function(props){
    const [searchParams,setSearchParmas] = useSearchParams();
    console.log(searchParams.get("name"))
    const getGoods = (e) => {
        console.log(e)
    }
    return(
        <div>
            <p>goods页面</p>
            <Outlet getGoods={getGoods()} />
        </div>
    )
}